<template>
	<view class="videoList">
		<view class="swiper-box">
			<swiper class="swiper" :vertical="true">
				<swiper-item v-for="item of videos" :key="item.id">
					<view class="swiper-item" style="color: #000000;">
						<vidio-player :video="item.src"></vidio-player>
					</view>
					<view class="left-box">
						<list-left></list-left> 
					</view>
					<view class="right-box">
						<list-right></list-right>
					</view>
				</swiper-item>
			</swiper>
		</view>
	</view>
</template>

<script>
	import listRight from './listRight.vue'
	import listLeft from './listLeft.vue'
	import vidioPlayer from "./vedioPlayer.vue"
	export default {
		components: {
			vidioPlayer,
			listLeft,
			listRight
		},
		props:['list'],
		data() {
			return {
				videos:[]
			}
		}, 
		watch:{
			list(){
				this.videos = this.list
			}
		}
	}
</script>

<style>
	.right-box{
		z-index: 20;
		position: absolute;
		bottom: 50px;
		right: 10px;
	}
	.left-box{
		z-index: 20;
		position: absolute;
		bottom: 50px;
		left: 10px;
	}
	.videoList {
		height: 100%;
		width: 100%;
	}

	.swiper-box {
		height: 100%;
		width: 100%;
	}

	.swiper {
		height: 100%;
		width: 100%;
	}

	.swiper-item {
		height: 100%;
		width: 100%;
		z-index: 19;
	}
</style>
